import request from '@/utils/request'


////////////////////  指数池

// 获取所有指数类型 queryAllIndexType
export function queryAllIndexTypeById(data) {  
  return request({
    url: '/invest/index/queryAllIndexTypeById',
    method: 'post',
    data
  })
}

// 添加指数类型
export function insertIaIndexType(data) {
  return request({
    url: '/invest/index/insertIaIndexType',
    method: 'post',
    data
  })
}

// 修改指数类型
export function updateIaIndexTypeById(data) {
  return request({
    url: '/invest/index/updateIaIndexTypeById',
    method: 'post',
    data
  })
}

// 添加指数分类
export function insertIaIndexModel(data) {
  return request({
    url: '/invest/index/insertIaIndexModel',
    method: 'post',
    data
  })
}

// 修改指数分类
export function updateIaIndexModelById(data) {
  return request({
    url: '/invest/index/updateIaIndexModelById',
    method: 'post',
    data
  })
}

// 根据id删除指数类型
export function deleteById(data) {
  return request({
    url: '/invest/index/deleteById',
    method: 'post',
    data
  })
}

// 根据id删除指数分类
export function deleteIndexModelById(data) {
  return request({
    url: '/invest/index/deleteIndexModelById',
    method: 'post',
    data
  })
}

// 指数池 指数增删改
export function addOrUpdateIndex(data) {
  return request({
    url: '/invest/index/addOrUpdateIndex',
    method: 'post',
    data
  })
}

////////////////////  策略属性

// 策略属性
export function findAllInvestMarket(data) {
  return request({
    url: '/invest/strategy/findAllInvestMarket',
    method: 'post',
    data
  })
}

// 添加投资方法名称
export function addStrategyMethod(data) {
  return request({
    url: '/invest/strategy/addStrategyMethod',                                                         
    method: 'post',
    data
  })
}

// 修改投资方法名称
export function updateStrategyMethod(data) {
  return request({
    url: '/invest/strategy/updateStrategyMethod',                                                         
    method: 'post',
    data
  })
}

// 删除投资名称
export function deleteStrategyMethodById(data) {
  return request({
    url: '/invest/strategy/deleteStrategyMethodById',                                                         
    method: 'post',
    data
  })
}

// 指数添加净值
export function manualAddOrUpdateIndex(data) {
  return request({
    url: '/invest/index/manualAddOrUpdateIndex',
    method: 'post',
    data
  })
}

////////////////// 邮件模板

// 查询邮件模板All
export function findAllOrgan(data) {
  return request({
    url: '/invest/manage/findAllOrgan',                                                         
    method: 'get'
  })
}
// 添加/修改 邮件模板
export function addOrUpdateOrgan(data) {
  return request({
    url: '/invest/manage/addOrUpdateOrgan',                                                         
    method: 'post',
    data
  })
}
// 邮件模板详情
export function findInvestOrganByOrganId(data) {
  return request({
    url: '/invest/manage/findInvestOrganByOrganId',                                                         
    method: 'post',
    data
  })
}
// 删除邮件模板
export function deleteInvestOrganById(data) {
  return request({
    url: '/invest/manage/deleteInvestOrganById',                                                         
    method: 'post',
    data
  })
}